package collectors.file.models;

import java.util.*;

import javax.persistence.*;

import play.data.validation.Constraints.Required;
import play.db.ebean.Model;

@Entity
public class FileUser extends Model{

	@Id
	public Long id;
		
	public String dpkey;
	public String dpSecret;
	
	public static Finder<Long, FileUser> find = new Finder<Long,FileUser>(Long.class, FileUser.class);
	
	public FileUser(){
		
	}
	
	public FileUser(Long id){
		this.id = id;
	}
	
	public static List<FileUser> all(){
		return find.all();
	}

	public static FileUser find(Long id) {
		return find.byId(id);
	}
	
	public String toString(){
		return id + "";
	}

	public static FileUser create() {
		FileUser p = new FileUser();
		p.save();
		return p;
	}
}